{% extends "base_generic.html" %}
{% block content %}
  <h1>recipetypes ({{recipetypes|length}})</h1>
  <h2><a href="/admin/recipetypes//new/" class="add">Add new recipe type</a></h2>
  <table class="tablelist">
  {% for recipetype in recipetypes %}
    <tr>
      <td><img src="/image/{{recipetype.imagekey}}/50/50/cropped/" width="20" /></td>
      <td><a href="/admin/recipes/{{recipetype.key}}/">{{recipetype.name}}</a></td>
      <td><a href="/admin/recipetypes/{{recipetype.key}}/edit/">Edit</a></td>
      <td><a href="/admin/recipetypes/{{recipetype.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{recipetype.name}}\'?');">Delete</a></td>
      <td><a href="/admin/recipes/{{recipetype.key}}//new/">New recipe</a></td>
      <td>{{recipetype.recipecounter}} recipes</td>
      <td><a href="/{{recipetype.url}}/">Public</a></td>
    </tr>
{%endfor%}
</table>
{% endblock %}
